#include <log4cplus/logger.h>
#include <log4cplus/configurator.h>
#include <iomanip>

#define LOGENABLE 1

#ifdef LOGENABLE

#define LINFO(x) LOG4CPLUS_INFO(l_main, x)
#define LFATAL(x) LOG4CPLUS_FATAL(l_main, x)
#define LERROR(x) LOG4CPLUS_ERROR(l_main, x)
#define LWARNING(x) LOG4CPLUS_WARN(l_main, x)
#define LDEBUG(x) LOG4CPLUS_DEBUG(l_main, x)

#else
#define LINFO(x)
#define LERROR(x) 
#define LFATAL(x)
#define LWARNING(x) 
#define LDEBUG(x) 



#endif
extern log4cplus::Logger l_main;

void InitLog();